<?php
if (!empty($_COOKIE["userName"]))
    echo "欢迎 " . $_COOKIE["userName"] . "!<br>" . "登录成功!当前时间:" . date('Y-m-d H:i:s' , time()) ."!<br>";
else
    echo "普通访客!<br>". "当前时间:" . date('Y-m-d H:i:s' , time());